package com.jied.duodian.service.custom;

import com.jied.duodian.dao.custom.DUProduceDao;
import com.jied.duodian.entity.DdProduct;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Description:
 *
 * @author LiJie
 * @date Created on 2020/11/1
 * WWW https://github.com/j6l
 */
@Service
public class DUProductservice {


    @Autowired
    DUProduceDao duProduceDao;

    @Cacheable(cacheNames = "qt", keyGenerator = "keyGenerator")
    public List<DdProduct> getbrandname() {
        return duProduceDao.getBrandName();
    }
}
